var mask = null;

var login_user = null;
var logList = [];
var arryList = [];
$(function() { // 初始化内容
	mui.plusReady();
	mask = mui.createMask(); //遮罩层
	mui.init();


	login_user = JSON.parse(localStorage.getItem('loginUser'));
	datetime_init();
	logList = JSON.parse(sessionStorage.getItem('logMsg'));
	console.log(logList)
	for (var i = 0; i < logList.length; i++) {
		console.log(logList[i])
		var obj = new Object;
		obj.title = logList[i].content.split(",")[0];
		obj.date = logList[i].content.split(",")[1];
		obj.bz = logList[i].content.split(",")[2].slice(4);
		arryList.push(obj)
	}

	loadApp(arryList);
})

var app = new Vue({
	el: '#app',
	data: {
		show: true,
		todos: []
	},
	methods: {
		selected: function(todo) {

			//mui.alert(todo.bz);
			mui.alert(todo.bz,"备注", function() {

			});
		}
	}
});

function loadApp(data) {
	console.log("data1====" + JSON.stringify(data));

	for (var i = 0; i < data.length; i++) {
		var d = data[i];
		var o = new Object();
		for (var x in d) {
			o[x] = d[x];

		}

		app.todos.push(o);
	}
}
